package com.gymjournal

import static org.junit.Assert.*
import org.junit.*

class GymnasticTypeTests {

    @Before
    void setUp() {
        // Setup logic here
    }

    @After
    void tearDown() {
        // Tear down logic here
    }

    @Test
    void testSave() {
        def gymnasticType = new GymnasticType(code: "gym", displayName: "Gym!").save()
        assertNotNull gymnasticType
        assertNotNull gymnasticType.id
    }

    @Test
    void testNullable() {
        assertNull new GymnasticType().save()
        assertNull new GymnasticType(code: 'fff').save()
        assertNull new GymnasticType(displayName: 'wwww').save()
    }
}
